import request from '@/utils/request'

/**
 * 获取课程类型列表
 * @param data
 * @returns {AxiosPromise}
 */
export function courseDurationTypeList(data) {
  return request({
    url: '/wordSystemCourseDurationType/queryList',
    method: 'POST',
    data
  })
}

/**
 * 课程类型新增或修改
 * @param data
 * @returns {AxiosPromise}
 */
export function createdOrUpdate(data) {
  return request({
    url: '/wordSystemCourseDurationType/createdOrUpdate',
    method: 'POST',
    data
  })
}
